package com.warm.base.algorithm.structure.array;

/**
 * @Date: 2019/12/2 13:22
 * @Author: LChuang
 * @Description:
 */
public interface Stack<E> {

    /**
     *  栈: First in Last out --> 容器装沙子, 先装进去的最后才倒出来
     */

    int getSize();

    boolean isEmpty();

    void push(E e);

    E pop();

    E peek();
}
